package com.hongxin.nw.netty.down;

import com.hongxin.nw.netty.model.Transfer;
import com.hongxin.nw.netty.utils.FieldPack;
import com.hongxin.nw.netty.values.StaticValue;
import com.hongxin.nw.netty.values.TypeIdentif;

/**
 * @remark --
 * @author: GuoXiaolin
 * @date 2019/6/25 15:21
 * @Version 1.0
 * @Descibe
 */
public class StopReq implements IChannelRequest {
    @Override
    public String doPacking(Transfer transfer) throws Exception {
//        APCI ac = new APCI();
//        ac.setIdentifyStart(TypeIdentif.IDENTIFY_START.getInt());
//        ac.setApduLength(0);
//        ac.setContarea(TypeIdentif.FORMAT_U.getStr(), StaticValue.U_STOP_V);
//        return ac.getHexData();

        int length = 0;
        return FieldPack.packAPCI(length,TypeIdentif.FORMAT_U.getStr(), StaticValue.U_STOP_V);
    }
}
